package com.future.service.provider;

import java.time.LocalDate;

import org.springframework.stereotype.Component;

import com.alibaba.dubbo.config.annotation.Service;
import com.future.service.DemoService;

@Component
@Service(version = "1.0.0", timeout = 10000, interfaceClass = DemoService.class, cluster = "failfast", retries = 5, loadbalance = "roundrobin")
public class DemoServiceImpl implements DemoService {

	@Override
	public String sayHello(String name) {
		System.out.println("[" + LocalDate.now() + "] Hello " + name);
		return "Hello " + name;
	}

}
